package icu.mohan.erp.call.business;

import static icu.mohan.erp.call.constant.CallUrl.SEAT_NO_CALL;
import static icu.mohan.erp.call.constant.CallUrl.SEAT_PHONE_CALL;

import java.util.Map;

import icu.mohan.erp.call.model.CommonResponse;
import icu.mohan.erp.call.service.CallApiService;
import lombok.AllArgsConstructor;

/**
 * 呼叫管理
 * 
 * @author yanglihao
 */
@AllArgsConstructor
public class CallBusiness {

    private CallApiService callApiService;

    /**
     * 坐席编号拨打电话
     */
    public CommonResponse seatNoCall(Map<String, String> requestBody) throws Exception {
        return callApiService.post(SEAT_NO_CALL, requestBody);
    }

    /**
     * 坐席号码拨打电话
     */
    public CommonResponse seatPhoneCall(Map<String, String> requestBody) throws Exception {
        return callApiService.post(SEAT_PHONE_CALL, requestBody);
    }
}
